{subtemplate jameson_read:qidian/read_header}
<!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
<div class="uk-grid-collapse" uk-grid>
	<div class="uk-width-medium">
		<div class="uk-padding-small back-box">
			<div class="uk-card">
			    <div class="uk-card-header">
			        <div class="uk-grid-small uk-flex-middle" uk-grid>
			            <div class="uk-width-auto">
			                <img class="uk-border-circle" src="{eval echo avatar($_G['uid'],'big',true);}">
			            </div>
			            <div class="uk-width-expand uk-text-center">
			                <h3 class="uk-card-title uk-margin-remove-bottom">{$_G['username']}</h3>
			            </div>
			        </div>
			    </div>
			</div>
			{if $adv[0]['adv']}
			<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
				{eval echo stripcslashes($adv[0]['adv']);}
			</div>
			{/if}
			<ul uk-tab class="pl0">
			    <li><a href="javascript:;">{lang jameson_read:yuedubang}</a></li>
			    <li><a href="javascript:;">{lang jameson_read:xinshushangjia}</a></li>
			</ul>
			<ul class="uk-switcher uk-margin-remove uk-padding-remove">
				<li>
					<ul class="uk-margin-remove uk-padding-remove gonggao">
						{loop $paihangbang['yuedu'] $key $book}
						{if $key < 12}
							<li class="cl">
								<a class="channel xg1" href="{eval echo jamesonurl('category',$book['category_id'])}">
									<span>[</span>{$book['category_name']}<span>]</span>
								</a>
								<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
							</li>
						{/if}
						{/loop}
					</ul>
				</li>
				<li>
					<ul class="uk-margin-remove uk-padding-remove gonggao">
						{loop $paihangbang['zuixin'] $key $book}
						{if $key < 12}
							<li class="cl">
								<a class="channel xg1" href="{eval echo jamesonurl('category',$book['category_id'])}">
									<span>[</span>{$book['category_name']}<span>]</span>
								</a>
								<a class="name" href="{eval echo jamesonurl('book',$book['book_id']);}" >{$book['book_name']}</a>
							</li>
						{/if}
						{/loop}
					</ul>
				</li>
			</ul>
			{if $adv[1]['adv']}
			<div class="cl" style="width: auto;margin:auto;overflow: hidden;">
				{eval echo stripcslashes($adv[1]['adv']);}
			</div>
			{/if}
		</div>
	</div>
	<div class="uk-width-expand">
		<div class="uk-padding back-box uk-margin-left">
			<ul  class="uk-tab uk-margin-remove uk-padding-remove">
			    <li class="pl0 {if $_GET['type']=='fav' || !isset($_GET['type'])}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=fav">{lang jameson_read:yishoucang}</a>
				</li>
				<li class="{if $_GET['type']=='sq'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=sq">{lang jameson_read:mybookmark}</a>
				</li>
				<li class="{if $_GET['type']=='fx'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=fx">{lang jameson_read:myfenxiang}</a>
				</li>
				<li class="{if $_GET['type']=='ds'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=ds">{lang jameson_read:wodedashang}</a>
				</li>
				<li class="{if $_GET['type']=='sp'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=sp">{lang jameson_read:touchudeshupiao}</a>
				</li>
				<li class="{if $_GET['type']=='buy'}uk-active{/if}">
					<a href="./plugin.php?id=jameson_read&contrl=index&act=bookstore&type=buy">{lang jameson_read:yidingyue}{lang jameson_read:de}{lang jameson_read:zhangjie}</a>
				</li>
			</ul>
			<ul class="uk-switcher uk-margin-remove uk-padding-remove">
				<li class="{if $_GET['type']=='fav' || !isset($_GET['type'])}uk-active{/if}">
					{if $books}
					<div class="uk-grid-collapse uk-child-width-1-2 shaixuanbooklist zqy_1" uk-grid>
						{loop $books $key $book}
							<div class="cl uk-margin-top" id="favores_tr_{$book['favore_id']}">
								<div class="book-img z">
				                    <a href="{eval echo jamesonurl('book',$book['book_id']);}">
				                        <img src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}">
				                    </a>
				                </div>
				                <div class="book-info">
		                            <h4><a href="{eval echo jamesonurl('book',$book['book_id']);}">{$book['book_name']}</a></h4>
		                            <a class="xg1 xs1 xw0" href="./plugin.php?id=jameson_read&contrl=index&act=zuozhe&zuozhe_name={$book['author']}">{$book['author']}</a>
		                            <div class="tag512">
		                                <span class="green">{if $book['plan']}{lang jameson_read:yiwanjie}{else}{lang jameson_read:lianzaizhong}{/if}</span>
		                                <a href="javascript:;" onclick="jameson.removebookstore(this,'favores',{$book['favore_id']})" class="org">{lang jameson_read:yichushujia}</a>
		                            </div>
		                            <p class="desco">
		                            	{if $book['subject']}
		                            	<a href="{eval echo jamesonurl('thread',$book['tid'],$book['pid'],$_G['uid']);}">
		                            		{$book['subject']}</a>
		                            	{else}
		                                   {$book['desc']}
		                            	{/if}
		                            </p>
		                        </div>
							</div>
						{/loop}
					</div>
					<div class="uk-margin-top cl ">{$pageshow}</div>
					{else}
						<div class="uk-alert-danger uk-padding" uk-alert>{lang jameson_read:zanwushoucang}</div>
					{/if}
				</li>
				<li class="{if $_GET['type']=='sq'}uk-active{/if}">
					{if $bookssq}
					<table class="uk-table uk-table-divider">
						<thead>
							<tr class="">
								<th>{lang jameson_read:xuhao}</th>
								<th>{lang jameson_read:zhangjie}</th>
								<th>{lang jameson_read:shuming}</th>
							</tr>
						</thead>
						<tbody>
						{loop $bookssq $key $value}
							<tr>
								<td>{eval echo ++$key;}</td>
								<td><a class="xi2" href="{eval echo jamesonurl('thread',$value['tid'],$value['pid'],$_G['uid']);}{if $value['hash']}#{$value['hash']}{/if}" >{$value['subject']}</td>
								<td><a href="{eval echo jamesonurl('book',$value['book_id']);}">{$value['book_name']}</a></td>
							</tr>
						{/loop}
						</tbody>
					</table>
					<div class="uk-margin-top cl">{$pageshow}</div>
					{else}
						<div uk-alert class="uk-alert-danger uk-padding">{lang jameson_read:zanwushuqian}</div>
					{/if}
				</li>
				<li class="{if $_GET['type']=='fx'}uk-active{/if}">
					{if $booksfx}
					<table class="uk-table uk-table-divider">
						<thead>
							<tr class="">
								<th>{lang jameson_read:xuhao}</th>
								<th>{lang jameson_read:fenxiangzhangjie}</th>
								<th>{lang jameson_read:fenxiangyonghushu}</th>
								<th>{lang jameson_read:huodejiangli}/{$_G['jameson_read']['trametitle']}</th>
							</tr>
						</thead>
						<tbody>
						{loop $booksfx $key $value}
							<tr>
								<th>{eval echo ++$key;}</th>
								<th><a class="xi2" href="jamesonurl('book',$value['book_id'])">[{$value['book_name']}]</a> ---&gt; <a href="{eval echo jamesonurl('thread',$value['tid'])}&fxuid={$_G['uid']}" class='xi2'>{$value['subject']}</th>
								<th>{$value['usernums']}</th>
								<th>{$value['jianglinums']}</th>
							</tr>
						{/loop}
						</tbody>
					</table>
					<div class="uk-margin-top cl">{$pageshow}</div>
					{else}
						<div uk-alert class="uk-alert-danger uk-padding">{lang jameson_read:zanwufenxiang}</div>
					{/if}
				</li>
				<li class="{if $_GET['type']=='ds'}uk-active{/if}">
		    		{if $booksds}
			    	<table class="uk-table uk-table-divider">
			    		<thead>
			    		<tr class="">
			    			<th class="">{lang jameson_read:xuhao}</th>
			    			<th class="">{lang jameson_read:shuming}</th>
			    			<th class="">{lang jameson_read:zuozhe}</th>
			    			<th class="">{lang jameson_read:dashangjine}/{$_G['jameson_read']['dstrametitle']}</th>
			    			<th class="">{lang jameson_read:dashangshijian}</th>
			    		</tr>
			    		</thead>
			    		<tbody>
			    		{loop $booksds $key $value}
			    		<tr id="">
			    			<td>{eval echo ++$key;}</td>
			    			<td><a href="{eval echo jamesonurl('book',$value['book_id']);}" class="xi2">{$value['book_name']}</a></td>
			    			<td><a {if $value['author']} href="{eval echo jamesonurl('zuozhe',$value['author']);}" {else} href="{eval echo jamesonurl('zuozhe',$value['uid'])}"{/if}>{$value['author']}</a></td>
			    			<td>{$value['price']}</td>
			    			<td>{eval echo date('Y-m-d H:i:s',$value['addtime']);}</td>
			    		</tr>
			    		{/loop}
			    		</tbody>
			    	</table>
			    	<div class="uk-margin-top cl">{$pageshow}</div>
			    	{else}
			    	<div class="uk-padding uk-alert-danger" uk-alert>{lang jameson_read:zanwudashangjilu}</div>
		    		{/if}
				</li>
				<li class="{if $_GET['type']=='sp'}uk-active{/if}">
		    		{if $shupiaos}
			    	<table class="uk-table uk-table-divider">
			    		<thead>
			    		<tr class="">
			    			<th class="">{lang jameson_read:xuhao}</th>
			    			<th class="">{lang jameson_read:shuming}</th>
			    			<th class="">{lang jameson_read:zuozhe}</th>
			    			<th class="">{lang jameson_read:shupiao}/{lang jameson_read:huafei}</th>
			    			<th class="">{lang jameson_read:toupiao}{lang jameson_read:shijian}</th>
			    		</tr>
			    		</thead>
			    		<tbody>
			    		{loop $shupiaos $key $value}
			    		<tr id="">
			    			<td>{eval echo ++$key;}</td>
			    			<td><a href="{eval echo jamesonurl('book',$value['book_id']);}" class="xi2">{$value['book_name']}</a></td>
			    			<td><a {if $value['author']} href="{eval echo jamesonurl('zuozhe',$value['author']);}" {else} href="{eval echo jamesonurl('zuozhe',$value['uid'])}"{/if}>{$value['author']}</a></td>
			    			<td>{$value['name']}/{$value['money']} {$value['exid']}</td>
			    			<td>{eval echo date('Y-m-d H:i:s',$value['addtime']);}</td>
			    		</tr>
			    		{/loop}
			    		</tbody>
			    	</table>
			    	<div class="uk-margin-top cl">{$pageshow}</div>
			    	{else}
						<div class="uk-padding uk-alert-danger" uk-alert>{lang jameson_read:zanwujilu}</div>
			    	{/if}
				</li>
				<li class="{if $_GET['type']=='buy'}uk-active{/if}">
		    		{if $booksbuytid}
			    	<table class="uk-table uk-table-divider">
			    		<thead>
			    		<tr class="">
			    			<th class="">{lang jameson_read:xuhao}</th>
			    			<th class="">{lang jameson_read:zhangjie}</th>
			    			<th class="">{lang jameson_read:shoujia}/{$_G['jameson_read']['trametitle']}</th>
			    			<th>{lang jameson_read:shijian}</th>
			    		</tr>
			    		</thead>
			    		<tbody>
			    		{loop $booksbuytid $key $value}
			    		<tr id="">
			    			<td>{eval echo ++$key;}</td>
			    			<td><a href="{eval echo jamesonurl('thread',$value['tid'],$value['pid'],$_G['uid']);}" class="xi2">{$value['subject']}</a></td>
			    			<td>{$value['price']}</td>
			    			<td>{eval echo dgmdate($value['addtime']);}</td>
			    		</tr>
			    		{/loop}
			    		{eval $key = $key?($key+1):0;}
			    		{loop $booksbuybook $k $value}
			    		<tr id="">
			    			<td>{eval echo $key+($k+1);}</td>
			    			<td>[{lang jameson_read:zhengbengoumai}]<a href="{eval echo jamesonurl('book',$value['book_id']);}" class="xi2">{$value['book_name']}</a></td>
			    			<td>{$value['bookmoney']}</td>
			    			<td>{eval echo dgmdate($value['addtime']);}</td>
			    		</tr>
			    		{/loop}
			    		</tbody>
			    	</table>
			    	<div class="uk-margin-top cl">{$pageshow}</div>
			    	{else}
			    	<div class="uk-padding uk-alert-danger" uk-alert>{lang jameson_read:zanwujilu}</div>
		    		{/if}
				</li>
			</ul>
		</div>
	</div>
</div>
<!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
{subtemplate jameson_read:qidian/read_footer}